//
//  BrandNameModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/13.
//

import UIKit
import ObjectMapper
class BrandNameModel: Mappable {
    var code : String?
    var data : [BrandSeriesListModel]?
    var msg : String?
    
    required init?(map: Map) {
        
    }
    
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        msg <- map["msg"]
    }

}

struct MapKey {
    var aKey: String
    var data: [BrandSeriesListModel]?
}

///品牌
class BrandSeriesListModel: Mappable {
    var brandLog : String?
    var brandName : String?
    var brandNameEn : String?
    var id : NSInteger?
    var seriesList : [SeriesListModel]?
    var isSelect = false
    var first: String?//检索首字母
    func mapping(map: Map) {
        brandLog <- map["brandLog"]
        brandName <- map["brandName1"]
        brandNameEn <- map["brandNameEn"]
        id <- map["id"]
        seriesList <- map["seriesList"]
        first <- map["first"]
    }
    required init?(map: Map) {}
    
     init() {
        
    }
}

///车系
class SeriesListModel: Mappable {
    var id : Int?
    var imageUrl : String?
    var name : String?
    var isSelect = false
    func mapping(map: Map) {
        id <- map["id"]
        imageUrl <- map["imageUrl"]
        name <- map["name"]
    }
    required init?(map: Map) {}
    init() {
        
    }
}
